﻿using GdNet.Core.Domain;

namespace GdNet.Core.Dto
{
    public abstract class AbstractEntityDto<TEntity, TId> where TEntity : AbstractEntity<TId>
    {
        public TId Id { get; protected set; }
        public string Signature { get; protected set; }

        protected AbstractEntityDto(TEntity entity)
        {
            this.Id = entity.Id;
            this.Signature = entity.Signature;
        }
    }
}
